package com.wanmait.recycle.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.wanmait.recycle.pojo.Data;
import com.wanmait.recycle.pojo.Dispose;
import com.wanmait.recycle.pojo.Rubbish;

public interface DataService extends CommonService<Data> {

	/*查询所有*/
	PageInfo<Data> findAllData(Integer enable);
	/*启用和禁用 改变enable ZQ*/
	void changeEnable(Data data);
	/*多条件搜索*/
	PageInfo<Data> findAllByCriteria(Integer enable,String beginTime,String endTime,String searchStr);
	/*用户添加*/
	void addData(Data data);
	//根据用户id来找到所有的data
	PageInfo<Data> findAllById(Integer id);
	//根据时间来查找数据
	PageInfo<Data> seachByTime(String beginTime, String endTime, Integer userinfoId);
	//保存数据
	void saveData(Data data, String startTime, String stopTime);
	
	PageInfo<Data> findAllByRubbishId(Integer id);
	Map<String, Double> dataStatistics(Integer nRubbishId, Integer nCityId, String beginTime, String endTime);
	List<Double> getDisChargeByYear(Date date);
	List<Dispose> findTwoList();
	//更改data信息
	void changeData(Data data, String startTime, String stopTime);
//	List<Data> findAllConcern(Rubbish rubbish, Integer nCityId, Boolean isCheck);
	
}
